<?php include_once('header.php');?>
<div class="main-content">
		<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
			</script>
			<ul class="breadcrumb">
				<li>
					<i class="icon-home home-icon"></i>
					抽奖管理
				</li>
				<li>
					抽奖设置
				</li>
			</ul>
		</div>
		<div class="page-content">
			<div class="page-header">
				<h1 class="blue"><i class="icon-edit"></i> 抽奖设置</h1>
			</div>
			<div class="row">
				<div class="col-xs-12">
					<form class="form-horizontal" enctype="multipart/form-data" role="form" method="post" action="/www/lottery_set/edit"  onsubmit="return check()">
						<input type="hidden" id="id" name="id" value="<?php echo $data['id'];?>" />
						<div class="form-group">
							<label for="title" class="col-sm-1 control-label">抽奖设置:</label>
							<div class="col-sm-6">											
								<select name="status" id="status">
										<option value="1" <?php if($data['status'] == 1) {echo 'selected = "selected"';}?>>开</option>
										<option value="0" <?php if($data['status'] == 0) {echo 'selected = "selected"';}?>>关</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="title" class="col-sm-1 control-label">抽奖规则:</label>
							<div class="col-sm-6">
								<textarea class="form-control" rows="4" name="content"><?php echo $data['content'];?></textarea>
							</div>
						</div>
						<div class="form-group">
							<label for="title" class="col-sm-1 control-label">活动时间:</label>
							<div class="col-sm-6">
								<input  type="text" class="jcDate" id="start_time" name="start_time" readonly="readonly" value="<?php echo date("Y-m-d",$data['start_time']);?>" style="background: #fff url(/public_source/www/assets/images/dateIco.png) no-repeat right center !important;"/>
								&nbsp;至&nbsp;
								<input  type="text" class="jcDate" id="end_time" name="end_time" readonly="readonly" value="<?php echo date("Y-m-d",$data['end_time']);?>" style="background: #fff url(/public_source/www/assets/images/dateIco.png) no-repeat right center !important;"/>
							</div>
						</div>
												
					 	<div class="form-group">
					   		<div class="col-sm-offset-1 col-sm-10">
								<button type="submit" id="submit" class="btn btn-primary">确定保存</button>&nbsp;
								<a href="/www/lottery_set/clear"><span class="btn btn-danger clear">清空数据</span></a>
							</div>
					  	</div>
					</form>	
				</div>
			</div>
		</div>														
	</div>
<?php include_once('content.php');?>
	<link rel="stylesheet" href="/public_source/www/assets/css/jcDate.css" />
	<script src="/public_source/www/js/cancel.js"></script>
    <script src="/public_source/www/assets/js/jQuery-jcDate.js"></script>
<?php include_once('footer.php');?>
<script type="text/javascript">
	$(function (){
		$("input.jcDate").jcDate({					       
			IcoClass : "jcDateIco",
			Event : "click",
			Speed : 100,
			Left : 0,
			Top : 28,
			format : "-",
			Timeout : 100
		});
	});
</script>	